Skip to content

Conversation

@dschom
Copy link
Contributor

@dschom dschom commented Oct 25, 2025

Waiting on #19600

Because

  • We need to send emails outside of the auth-server context

This pull request

  • Ports email sending to libs/accounts/email-sender from auth-server
  • Decouples email sending from email rendering

Issue that this pull request solves

Closes: FXA-12582

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

This is party of a multi part PR. The next part is email rendering.

@dschom dschom requested a review from a team as a code owner October 25, 2025 01:34
@dschom dschom marked this pull request as draft October 25, 2025 01:36
@dschom dschom force-pushed the FXA-12582 branch 2 times, most recently from 87fe895 to 5af34cf Compare October 27, 2025 16:54
@vpomerleau
Copy link
Contributor

Same question as the errors port to libs - is there a follow-up to port the tests and run them in CI?

Because:
- We will need this for subsequent efforts

This commit:
- Ports `oauth/errors.js` and `errors.js` from auth-server to libs
Because:
- We want need a standalone library that can be used to send emails

This Commit:
- Ports the email sending code from auth-server into libs
return false;
}

console.log('!!! ', routes, path, routes.findIndex((r) => {

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This logs sensitive data returned by
an access to oauthRoutes
as clear text.
}

console.log('!!! ', routes, path, routes.findIndex((r) => {
console.log(`/v1${r.path}`, path)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This logs sensitive data returned by
an access to oauthRoutes
as clear text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants